package com.moon.interface_api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.moon.interface_api.persistence")//为了防止每个dao都写@mapper注解
@EnableScheduling
public class InterfaceApiApplication implements CommandLineRunner {

	public static void main(String[] args) {
		SpringApplication.run(InterfaceApiApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		System.out.println("API 启动成功");
	}
}
